<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

require_once ADMIN.DS."/head.php";
?>
<h1>Классы страхования</h1><br />
<div class='floating'><a href='/admin/reliability/add'>Добавить класс</a></div>
<table cellpadding='0' cellspacing='0' class='list'>
	<tr class='table_header'>
		<td width='50px'>ID</td>
		<td width='80px'>Класс</td>
		<td width='100px'>Заголовок</td>
		<td width='200px' class='actions'>Действия</td>
	</tr><?php
		$classes = $db->getTable("select * from `reliability` order by `reliability_id`");
		foreach ($classes as $reliability)
		{
			echo "<tr><td>$reliability[reliability_id]</td>";
			echo "<td>$reliability[class]</td>";
			echo "<td>$reliability[title]</td>";
			echo "<td class='actions'><a href='/admin/reliability/edit/$reliability[reliability_id]' class='edit'>Редактировать</a> | <a href='/admin/reliability/delete/$reliability[reliability_id]' class='delete'>Удалить</a></td></tr>";
		}
?></table>

<?php require_once ADMIN.DS."/footer.php"; ?>